#include "stdafx.h"

namespace po = boost::program_options;

int PrintHelp(po::options_description desc)
{
    std::cout << desc << std::endl;
    return 1;
}

int _tmain(int argc, _TCHAR* argv[])
{
    po::options_description desc("Allowed options");
    desc.add_options()
        ("help", "produce help message")
        ("settings_file", po::value<std::string>(), "pass filepath to read profile settings");

    po::variables_map vm;
    po::store(po::parse_command_line(argc, argv, desc), vm);
    po::notify(vm);

    std::string profilePath;
    if (vm.count("help"))
    {
        return PrintHelp(desc);
    }
    if (vm.count("settings_file"))
    {
        profilePath = vm["settings_file"].as<std::string>();

    }
    else
    {
        return PrintHelp(desc);
    }

    return 0;
}

